<script setup>
defineProps({
  url: String
})


</script>

<template>
  <div class="fruit">
    <el-image alt="水果名称介绍" fit="fill" :src="url"
              style="width: 100%;height: 90%;border-radius: 5px;background-color:#fff;" />
    <div class="fruit-desc">
      菜同子 &nbsp;精选严选优品&nbsp; &nbsp; 新鲜水果
    </div>
    <div class="fruit-price">
      ￥9.9元/袋
    </div>
  </div>
</template>

<style lang="scss" scoped>
.fruit {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  height: 300px;
  padding-bottom:20px ;
  transition: all 0.3s ease-in-out;
  &:hover{
    transform: scale3d(1.05, 1.05, 1);
    box-shadow: 0 0 10px #ccc;
  }

  &-desc {
    font-size: 14px;
    color: #606266;
    margin-top: 10px;
  }

  &-price {
    color: #F56C6C;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 16px;
    padding-right: 10px;
  }
}
</style>